<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Warehouse extends Model
{
    use HasFactory;
    protected $table='warehouse';
    protected $guarded=[];

    public function InWarehouse(){
        return self::belongsTo(InWarehouse::class,'wid','id');
    }

    public function ToWarehouse(){
        return self::hasMany(ToWarehouse::class,'wid','id');
    }
}
